package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

public class Milestone implements Serializable {
    private Integer milestoneId;

    private String milestoneName;

    private String milestoneContent;

    private Date milestoneOpenTime;

    private Date milestoneCompleteTime;

    private Integer milestoneChargeId;

    private Integer milestonePublisherId;

    private Integer milestoneProId;

    private static final long serialVersionUID = 1L;

    public Integer getMilestoneId() {
        return milestoneId;
    }

    public void setMilestoneId(Integer milestoneId) {
        this.milestoneId = milestoneId;
    }

    public String getMilestoneName() {
        return milestoneName;
    }

    public void setMilestoneName(String milestoneName) {
        this.milestoneName = milestoneName == null ? null : milestoneName.trim();
    }

    public String getMilestoneContent() {
        return milestoneContent;
    }

    public void setMilestoneContent(String milestoneContent) {
        this.milestoneContent = milestoneContent == null ? null : milestoneContent.trim();
    }

    public Date getMilestoneOpenTime() {
        return milestoneOpenTime;
    }

    public void setMilestoneOpenTime(Date milestoneOpenTime) {
        this.milestoneOpenTime = milestoneOpenTime;
    }

    public Date getMilestoneCompleteTime() {
        return milestoneCompleteTime;
    }

    public void setMilestoneCompleteTime(Date milestoneCompleteTime) {
        this.milestoneCompleteTime = milestoneCompleteTime;
    }

    public Integer getMilestoneChargeId() {
        return milestoneChargeId;
    }

    public void setMilestoneChargeId(Integer milestoneChargeId) {
        this.milestoneChargeId = milestoneChargeId;
    }

    public Integer getMilestonePublisherId() {
        return milestonePublisherId;
    }

    public void setMilestonePublisherId(Integer milestonePublisherId) {
        this.milestonePublisherId = milestonePublisherId;
    }

    public Integer getMilestoneProId() {
        return milestoneProId;
    }

    public void setMilestoneProId(Integer milestoneProId) {
        this.milestoneProId = milestoneProId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", milestoneId=").append(milestoneId);
        sb.append(", milestoneName=").append(milestoneName);
        sb.append(", milestoneContent=").append(milestoneContent);
        sb.append(", milestoneOpenTime=").append(milestoneOpenTime);
        sb.append(", milestoneCompleteTime=").append(milestoneCompleteTime);
        sb.append(", milestoneChargeId=").append(milestoneChargeId);
        sb.append(", milestonePublisherId=").append(milestonePublisherId);
        sb.append(", milestoneProId=").append(milestoneProId);
        sb.append("]");
        return sb.toString();
    }
}